import React from 'react';

export default class State extends React.Component{
  //1. 声明 state
  // state = {}

  //2. 构造方法
  constructor(){
    //语法的限制
    super();
    this.state = {}
  }

  render(){
    return <h1>状态</h1>
  }
}